﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CUiMovMovieManagerCMD
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Resources;
using System.Windows.Forms;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands;

public class CUiMovMovieManagerCMD : TxButtonCommand
{
  private CUiMovMovieManagerEnabler m_enabler;

  public CUiMovMovieManagerCMD() => this.m_enabler = new CUiMovMovieManagerEnabler();

  public virtual void Execute(object cmdParams)
  {
    if (!this.m_enabler.Enable)
      return;
    Cursor current = Cursor.Current;
    try
    {
      Cursor.Current = Cursors.WaitCursor;
      ((Control) new CUiMovMovieManagerForm()).Show();
    }
    finally
    {
      Cursor.Current = current;
    }
  }

  public virtual string Category
  {
    get => this.GetResourceManager().GetString("SET_DISASSEMBLY_DYNAMIC_ROOT_CMD_CATEGORY");
  }

  public virtual string Name => this.GetResourceManager().GetString("MOVIE_MANAGER_COMMAND_NAME");

  private ResourceManager GetResourceManager()
  {
    return new ResourceManager("DnProcessSimulateCommands.StringTable", ((object) this).GetType().Assembly);
  }

  public virtual string Bitmap => "AVIGenerator.bmp";

  public virtual string Description
  {
    get => this.GetResourceManager().GetString("MOVIE_MANAGER_COMMAND_DESCRIPTION");
  }

  public virtual string Tooltip
  {
    get => this.GetResourceManager().GetString("MOVIE_MANAGER_COMMAND_TOOLTIP");
  }

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;

  public virtual bool Connect() => true;

  public virtual bool Licensed => TxCommandLicenser.MovieManagerLicense;
}
